﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000339 RID: 825
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class CommonRogueComponentUpdateScNotify : IMessage<CommonRogueComponentUpdateScNotify>, IMessage, IEquatable<CommonRogueComponentUpdateScNotify>, IDeepCloneable<CommonRogueComponentUpdateScNotify>, IBufferMessage
	{
		// Token: 0x17000ABB RID: 2747
		// (get) Token: 0x06002511 RID: 9489 RVA: 0x000687B3 File Offset: 0x000669B3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<CommonRogueComponentUpdateScNotify> Parser
		{
			get
			{
				return CommonRogueComponentUpdateScNotify._parser;
			}
		}

		// Token: 0x17000ABC RID: 2748
		// (get) Token: 0x06002512 RID: 9490 RVA: 0x000687BA File Offset: 0x000669BA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return CommonRogueComponentUpdateScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000ABD RID: 2749
		// (get) Token: 0x06002513 RID: 9491 RVA: 0x000687CC File Offset: 0x000669CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return CommonRogueComponentUpdateScNotify.Descriptor;
			}
		}

		// Token: 0x06002514 RID: 9492 RVA: 0x000687D3 File Offset: 0x000669D3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CommonRogueComponentUpdateScNotify()
		{
		}

		// Token: 0x06002515 RID: 9493 RVA: 0x000687DC File Offset: 0x000669DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CommonRogueComponentUpdateScNotify(CommonRogueComponentUpdateScNotify other) : this()
		{
			this.dFDPGEBCPEB_ = ((other.dFDPGEBCPEB_ != null) ? other.dFDPGEBCPEB_.Clone() : null);
			this.iJPJDJPBPNJ_ = other.iJPJDJPBPNJ_;
			this.rogueSubMode_ = other.rogueSubMode_;
			this.rogueMagicBattleConst_ = other.rogueMagicBattleConst_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002516 RID: 9494 RVA: 0x00068840 File Offset: 0x00066A40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CommonRogueComponentUpdateScNotify Clone()
		{
			return new CommonRogueComponentUpdateScNotify(this);
		}

		// Token: 0x17000ABE RID: 2750
		// (get) Token: 0x06002517 RID: 9495 RVA: 0x00068848 File Offset: 0x00066A48
		// (set) Token: 0x06002518 RID: 9496 RVA: 0x00068850 File Offset: 0x00066A50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueGameInfo DFDPGEBCPEB
		{
			get
			{
				return this.dFDPGEBCPEB_;
			}
			set
			{
				this.dFDPGEBCPEB_ = value;
			}
		}

		// Token: 0x17000ABF RID: 2751
		// (get) Token: 0x06002519 RID: 9497 RVA: 0x00068859 File Offset: 0x00066A59
		// (set) Token: 0x0600251A RID: 9498 RVA: 0x00068861 File Offset: 0x00066A61
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint IJPJDJPBPNJ
		{
			get
			{
				return this.iJPJDJPBPNJ_;
			}
			set
			{
				this.iJPJDJPBPNJ_ = value;
			}
		}

		// Token: 0x17000AC0 RID: 2752
		// (get) Token: 0x0600251B RID: 9499 RVA: 0x0006886A File Offset: 0x00066A6A
		// (set) Token: 0x0600251C RID: 9500 RVA: 0x00068872 File Offset: 0x00066A72
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RogueSubMode
		{
			get
			{
				return this.rogueSubMode_;
			}
			set
			{
				this.rogueSubMode_ = value;
			}
		}

		// Token: 0x17000AC1 RID: 2753
		// (get) Token: 0x0600251D RID: 9501 RVA: 0x0006887B File Offset: 0x00066A7B
		// (set) Token: 0x0600251E RID: 9502 RVA: 0x00068883 File Offset: 0x00066A83
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RogueMagicBattleConst
		{
			get
			{
				return this.rogueMagicBattleConst_;
			}
			set
			{
				this.rogueMagicBattleConst_ = value;
			}
		}

		// Token: 0x0600251F RID: 9503 RVA: 0x0006888C File Offset: 0x00066A8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as CommonRogueComponentUpdateScNotify);
		}

		// Token: 0x06002520 RID: 9504 RVA: 0x0006889C File Offset: 0x00066A9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(CommonRogueComponentUpdateScNotify other)
		{
			return other != null && (other == this || (object.Equals(this.DFDPGEBCPEB, other.DFDPGEBCPEB) && this.IJPJDJPBPNJ == other.IJPJDJPBPNJ && this.RogueSubMode == other.RogueSubMode && this.RogueMagicBattleConst == other.RogueMagicBattleConst && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002521 RID: 9505 RVA: 0x0006890C File Offset: 0x00066B0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.dFDPGEBCPEB_ != null)
			{
				num ^= this.DFDPGEBCPEB.GetHashCode();
			}
			if (this.IJPJDJPBPNJ != 0U)
			{
				num ^= this.IJPJDJPBPNJ.GetHashCode();
			}
			if (this.RogueSubMode != 0U)
			{
				num ^= this.RogueSubMode.GetHashCode();
			}
			if (this.RogueMagicBattleConst != 0U)
			{
				num ^= this.RogueMagicBattleConst.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002522 RID: 9506 RVA: 0x00068993 File Offset: 0x00066B93
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002523 RID: 9507 RVA: 0x0006899B File Offset: 0x00066B9B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002524 RID: 9508 RVA: 0x000689A4 File Offset: 0x00066BA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.RogueMagicBattleConst != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.RogueMagicBattleConst);
			}
			if (this.RogueSubMode != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.RogueSubMode);
			}
			if (this.IJPJDJPBPNJ != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.IJPJDJPBPNJ);
			}
			if (this.dFDPGEBCPEB_ != null)
			{
				output.WriteRawTag(122);
				output.WriteMessage(this.DFDPGEBCPEB);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002525 RID: 9509 RVA: 0x00068A38 File Offset: 0x00066C38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.dFDPGEBCPEB_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.DFDPGEBCPEB);
			}
			if (this.IJPJDJPBPNJ != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.IJPJDJPBPNJ);
			}
			if (this.RogueSubMode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RogueSubMode);
			}
			if (this.RogueMagicBattleConst != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RogueMagicBattleConst);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002526 RID: 9510 RVA: 0x00068AC0 File Offset: 0x00066CC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CommonRogueComponentUpdateScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.dFDPGEBCPEB_ != null)
			{
				if (this.dFDPGEBCPEB_ == null)
				{
					this.DFDPGEBCPEB = new RogueGameInfo();
				}
				this.DFDPGEBCPEB.MergeFrom(other.DFDPGEBCPEB);
			}
			if (other.IJPJDJPBPNJ != 0U)
			{
				this.IJPJDJPBPNJ = other.IJPJDJPBPNJ;
			}
			if (other.RogueSubMode != 0U)
			{
				this.RogueSubMode = other.RogueSubMode;
			}
			if (other.RogueMagicBattleConst != 0U)
			{
				this.RogueMagicBattleConst = other.RogueMagicBattleConst;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002527 RID: 9511 RVA: 0x00068B50 File Offset: 0x00066D50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002528 RID: 9512 RVA: 0x00068B5C File Offset: 0x00066D5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 32U)
				{
					if (num == 16U)
					{
						this.RogueMagicBattleConst = input.ReadUInt32();
						continue;
					}
					if (num == 32U)
					{
						this.RogueSubMode = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 40U)
					{
						this.IJPJDJPBPNJ = input.ReadUInt32();
						continue;
					}
					if (num == 122U)
					{
						if (this.dFDPGEBCPEB_ == null)
						{
							this.DFDPGEBCPEB = new RogueGameInfo();
						}
						input.ReadMessage(this.DFDPGEBCPEB);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000EFB RID: 3835
		private static readonly MessageParser<CommonRogueComponentUpdateScNotify> _parser = new MessageParser<CommonRogueComponentUpdateScNotify>(() => new CommonRogueComponentUpdateScNotify());

		// Token: 0x04000EFC RID: 3836
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000EFD RID: 3837
		public const int DFDPGEBCPEBFieldNumber = 15;

		// Token: 0x04000EFE RID: 3838
		private RogueGameInfo dFDPGEBCPEB_;

		// Token: 0x04000EFF RID: 3839
		public const int IJPJDJPBPNJFieldNumber = 5;

		// Token: 0x04000F00 RID: 3840
		private uint iJPJDJPBPNJ_;

		// Token: 0x04000F01 RID: 3841
		public const int RogueSubModeFieldNumber = 4;

		// Token: 0x04000F02 RID: 3842
		private uint rogueSubMode_;

		// Token: 0x04000F03 RID: 3843
		public const int RogueMagicBattleConstFieldNumber = 2;

		// Token: 0x04000F04 RID: 3844
		private uint rogueMagicBattleConst_;
	}
}
